package main.components.renderers;

import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import java.awt.*;

public class CellRendererSmetHead extends DefaultTableCellRenderer {

    public CellRendererSmetHead() {
    }

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {

        super.setBackground(isSelected ? SystemColor.textHighlight : new Color(214, 218, 210));
        super.setForeground(isSelected ? Color.black : Color.black);
        super.setText(value == null ? "" : value.toString());
        super.setFont(new Font("Calibri", 0, 12));

        return this;
    }
}



